package com.saer.client.label;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.widgets.Label;

public class TitleLabel extends Label {

	private String titleText = null;

	public TitleLabel(String title) {
		this.titleText = title;
		this.setContents("<b>" + titleText + "</b>");
		this.setAlign(Alignment.CENTER);
		this.setBackgroundColor("#F0D2D2");
		this.setHeight(20);
	}

	public void setTextColor(String color) {
		this.setContents("<b style=\"color:" + color + "\">" + titleText + "</b>");
	}

}
